import Vue from 'vue'
import Home from "../views/Home.vue"
import Router from 'vue-router'
import Reg from "../views/Reg.vue"
import Reg1 from "../views/Reg1.vue"
import Reg2 from "../views/Reg2.vue"
import Login from "../views/Login.vue"
import GoodsDetail from "../views/GoodsDetail.vue"
import My from "../views/My.vue"
import ShoppingCar from "../views/ShoppingCar.vue"
import Category from "../views/Category.vue"
import Search from "../views/Search.vue"
import Brand from "../views/Brand.vue"


Vue.use(Router)
export default new Router({
    routes: [
        {
            path: "/",
             component:Home
        },
        {
            path:"/Reg",
            component:Reg
        },
        {
            path:"/Reg1",
            component:Reg1
        },
        {
            path:"/Reg2",
            component:Reg2
        },
        {
            path:"/GoodsDetail/:goodsid",
            component:GoodsDetail
        },
        {
            path:"/My",
            component:My
        },
        {
            path:"/Search",
            component:Search
        },
        {
            path:"/Category",
            component:Category
        },
        {
            path:"/Login",
            component:Login
        },
        {
            path:"/ShoppingCar",
            component:ShoppingCar
        },
        {
            path:"/Brand/:",
            component:Brand
        },

    ]
})